import Vue from "vue";
import VueRouter from "vue-router";

import AboutCom from '../components/AboutCom.vue';
import HomeCom from '../components/HomeCom.vue';

Vue.use(VueRouter);

export default new VueRouter({
    routes: [
        {
            path: '/home',
            component: HomeCom
        },
        {
            path: '/about',
            component: AboutCom
        },{
            path: '*',
            redirect: '/home'
        }
    ]
})